
#ifndef _SRC_MQTT_AUTH_AUTH_H_
#define _SRC_MQTT_AUTH_AUTH_H_

#include "MQTT/Params.h"
#include <AiotEntity.h>
#include "Define.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief 构建username
 * @param dest
 * @param entity
 * @return
 */
int32_t authUsername(char **dest, AiotEntity *entity);
/**
 * @brief 构建password
 * @param dest
 * @param entity
 * @return
 */
int32_t authPassword(char **dest, AiotEntity *entity);
/**
 * @brief 构建client id
 * @param dest
 * @param entity
 * @param extClientId
 * @return
 */
int32_t authClientId(char **dest, AiotEntity *entity, char *extClientId);

#ifdef __cplusplus
}
#endif

#endif //_SRC_MQTT_AUTH_AUTH_H_
